package com.yuyou.fn.platform.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 系统用户
 *
 */
@TableName(value = "sys_user")
public class SysUser implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<SysUser> createExample() {
		return new Example<SysUser>(SysUser.class);
	}

	/**  */
	@TableId(value = "user_id")
	private Long userId;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 密码 md5 hash
	 */
	private String password;

	/**
	 * 真实姓名
	 */
	@TableField(value = "real_name")
	private String realName;

	/**
	 * 电话
	 */
	@TableField(value = "phone_no")
	private String phoneNo;

	/**
	 * 头像地址
	 */
	@TableField(value = "avatar_url")
	private String avatarUrl;

	/**
	 * 身份证号码
	 */
	@TableField(value = "id_no")
	private String idNo;

	/**
	 * 0: 誉优 1:区域组 2:业务组 3:老师 4:校区
	 */
	@TableField(value = "user_type")
	private Integer userType;

	/**
	 * 0:禁用 1:正常
	 */
	private Integer status;


	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getAvatarUrl() {
		return this.avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getIdNo() {
		return this.idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}

	public Integer getUserType() {
		return this.userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
